<div id="content">
	<h1>老匡的帐号</h1>
	<div class="grid-16-8 clearfix">
			<div class="article">
			<%= render :partial => 'top_nav',  :locals => { :on => 4 } -%>
				<% form_for @user, :url => myaccount_path(@user), :method => :put do |f| %>
				<table cellpadding="5" align="center" style="clear: both;">
					<%= render :partial => 'notice_message' -%>
					<tbody>
						<tr>
						  <td valign="top" align="right" class="m">名　号: </td>
						  <td valign="top">
								<%= f.text_field :nick_name, :size => 15 %><br/>
						  </td>
						</tr>
						<tr>
						
							<td valign="top" align="right" class="m">头　像:</td>
								<td valign="top"><img style="margin: 10px; float: left;" src=""><img style="margin: 10px; float: left;" src=""><a style="margin: 10px; float: left;" href="/myaccount/user_icon">更新</a>
					 			<br><br>
				 			</td>
			 			</tr>
						<tr>
							<td valign="top" align="right" class="m">常居地:</td>
								<td valign="top">
									<% living_city = parse_city(@user.living_city) %>
									<%= province_select(:user, :province,  {:update => 'city', :selected => living_city[0], :selected_city => living_city[1] }) %>
									<%= city_select(:user, :city) %>
								</td>
						</tr>
						<tr>
							<td valign="top" align="right" class="m">个人网站: </td>
							<td valign="top">
								<%= f.text_field :site_url, :size => 55 %>
							</td>
						</tr>
						<tr>
							<td valign="top" align="right" class="m">blog地址: </td>
							<td valign="top">
								<%= f.text_field :blog_url, :size => 55 %><br><br>
							</td>
						</tr>
						<tr><td valign="top" align="right" class="m">自我介绍: </td>
							<td valign="top">
								<%= f.text_area( :self_intro, :cols => 55, :rows => 15) %>
							</td>
						</tr>

						<tr>
							<td></td>
							<td>
							 	 <%= f.submit "提交资料"%>
							</td>
						</tr>
					</tbody>
				</table>
				<% end %>
			</div>
			<div class="aside">
				<h2>查看衣评吧</h2>去<a href="#">我的首页</a>，这家伙很懒，个人介绍也没写！
			</div>
	  	<div class="extra"></div>
	</div>
</div>
